using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using DAO;
using DTO;

namespace BUS
{
    public class HoaDonBUS
    {
        public void Them(HoaDonDTO hddto)
        {
            HoaDonDAO hddao = new HoaDonDAO();
            hddao.Them(hddto);
        }
        public DataTable LayMaxMa()
        {
            HoaDonDAO hddao = new HoaDonDAO();
            return hddao.LayMaxMa();
        }
        public void ThemChiTiet(DataTable dt, int mahd)
        {
            HoaDonDAO hddao = new HoaDonDAO();
            hddao.ThemChiTiet(dt, mahd);
        }
        public DataTable LayBangChiTietHD(int mahd)
        {
            HoaDonDAO hddao = new HoaDonDAO();
            return hddao.LayBangChiTietHD(mahd);
        }
        public DataTable BaoCaoHoaDon(string sql)
        {
            HoaDonDAO hddao = new HoaDonDAO();
            DataTable dt = hddao.BaoCaoHoaDon(sql);
            return dt;
           
        }
    }
}
